package com.vortex.cloud.zhsw.xinyang.enums;

import javax.measure.Prefix;

/**
 * 面积换算常量
 *
 * @author huohao@vortexinfo.cn
 * @date 2022/3/10 15:35
 */
public enum SquarePrefixEnum implements Prefix {
    /**
     * 换算方法
     */
    M_SQUARE("m", 0),
    KILO_SQUARE("k", 3);

    private final String symbol;
    private final int exponent;

    SquarePrefixEnum(String symbol, int exponent) {
        this.symbol = symbol;
        this.exponent = exponent;
    }

    @Override
    public String getSymbol() {
        return this.symbol;
    }

    @Override
    public Integer getValue() {
        return 100;
    }

    @Override
    public int getExponent() {
        return this.exponent;
    }

    @Override
    public String getName() {
        return this.name();
    }
}
